package com.wjw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wjw.pojo.MainMenu;
import com.wjw.pojo.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper extends BaseMapper<Order> {
    List<Order> listMyOrders(Integer userId, String bookName);

    List<Order> cart(Integer userId);

    int payOrder(Integer userId);

    List<Order> listMySale(String userName, String bookName);

    List<MainMenu> queryAll();

    List<Order> listOrders(Integer id);
}
